﻿namespace CommonUtils
{
    public class HtmlDocument : HtmlElement
    {
        public HtmlDocument(string html) : base("any", html) { }

        public static HtmlDocument FromHtml(string html)
        => new HtmlDocument(html);

        public static HtmlDocument FromFile(string path)
        => new HtmlDocument(FileUtil.GetText(path));
    }
}
